﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using A2DFramework.LockService.Configuration;
using A2DFramework.LockService.Providers;
using A2DFramework.InstanceService;

namespace A2DFramework.LockService
{
    public static class Starter
    {
        public static void Init()
        {
            if(LockServiceConfiguration.LockType== LockType.Redis)
                ObjectFactory.Register<ILockProvider, RedisLockProvider>();

            ObjectFactory.Register<ILock, LockService>();
        }
    }
}
